Skip to main content

Testing

Back to Documentation Intro Contents

Testing

Cypress Logo

Static Tests

  • Static tests are done automatically in VS Code e.g. typos and type errors
  • Ensure static testing libraries are set up such as ESLint or TypeScript

Unit Tests

  • To create unit tests, use AI to write the tests - see the "Testing Prompts" section of the Obsidian note on AI Prompts - and then review the tests and make improvements
  • Use a testing library such as Jest or React Testing Library
  • If using Vite, use Vitest for unit tests

Integration Tests

  • To create integration tests, use AI to write the tests - see the "Testing Prompts" section of the Obsidian note on AI Prompts - and then review the tests and make improvements
  • Use a testing library such as React Testing Library or Cypress

E2E Tests

Performance Testing

  • Before releasing the project, test the performance of the project using these tools: